import httpRequest from "@/axios/index.js"

/**
 * 查询字典数据列表
 */
 export function queryDataListByTypeReq(type){
    return httpRequest({
        url:"/sys/dict/data/selected/"+type,
        method:"get"
    })
}


/**
 * 分页&条件查询字典数据列表
 */
 export function querySelectiveReq(pageNum,pageSize,data){
    return httpRequest({
        url:"/sys/dict/data/list?pageNum="+pageNum+"&pageSize="+pageSize,
        method:"post",
        data:data
    })
}

/**
 * 添加字典数据
 */
 export function addReq(data){
    return httpRequest({
        url:"/sys/dict/data/add",
        method:"post",
        data:data
    })
}

/**
 * 修改字典数据
 */
 export function updateReq(data){
    return httpRequest({
        url:"/sys/dict/data/update",
        method:"put",
        data:data
    })
}

/**
 * 删除字典数据
 */
 export function deleteReq(ids){
    return httpRequest({
        url:"/sys/dict/data/delete",
        method:"post",
        data:ids
    })
}



